UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

The /etc/hosts file must be owned by root.


Overview

Finding ID Version Rule ID IA Controls Severity
V-22323 GEN001366 SV-26410r2_rule Medium
Description
The /etc/hosts file (or equivalent) configures local host name to IP address mappings that typically take precedence over DNS resolution. If this file is maliciously modified, it could cause the failure or compromise of security functions requiring name resolution, which may include time synchronization, centralized authentication, and remote system logging.
STIG Date
VMware ESX 3 Server 2016-05-13

Details

Check Text ( C-27492r2_chk )
Verify the /etc/hosts file is owned by root.

Procedure:
# ls -lL /etc/hosts
If the file is not owned by root, this is a finding.
Fix Text (F-23597r1_fix)
Change the owner of the /etc/hosts file to root.

# chown root /etc/hosts